<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        //对象，同名赋值
        let obj = {a:2,b:5}
        let {a,b} = obj
        console.log(a,b);
        //非同名
        let {aa:bb} = {aa:8}
        console.log(bb);
        //其他
        let [c,d,e,f] = "8907"
        console.log(c,d,e,f);
    </script>
</body>
</html>